import React, {Component} from 'react';
import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native';
import CXIcon from '../../style/icon/CXIcon';
import PropTypes from 'prop-types';
import * as Global from '../../style/global';
import {Actions} from 'react-native-router-flux';
/**
 * 通用icon按键
 */
class CommonIconButton extends Component {


    constructor(props) {
        super(props);
    }
    _backHome() {
        Actions.reset('IndexPage')
    }
    render() {
        return (
            <TouchableOpacity
                onPress={() => this._backHome()}>
                <CXIcon name='xiaoshoudanju' color='#ffffff' style={style.icon}>

                </CXIcon>
            </TouchableOpacity>
        )
    }
}
const style = StyleSheet.create({
    icon: {
        fontSize: 30,
        marginRight: 20
    },
    text: {
        color: '#fff',
        fontSize: 14
    }
});

export default CommonIconButton